/**
  ******************************************************************************
  * @file    Api/speedAdjust.h 
  * @author  zlf
  * @version V1.0.0
  * @date    20-7-2018
  * @brief   Header for motorControl.c module
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef    __SPEEDADJUST_H
#define    __SPEEDADJUST_H

/* Includes ------------------------------------------------------------------*/
	#include "main.h"
#define PI 						( 3.14159265 )	
//#define MATH_PI_SPEED            ( ( PI * 125 / 30 ) )
#define MATH_PI_SPEED            ( ( PI * tSet[TS_RADIUS] / tSet[TS_RATIO] ) )

#define TOUCHDOWNWEIGHT 	 	(( tSet[TS_LOADCALIB] * tSet[TS_TOUCHDOWNWEI]  ) / 10 )



/* Exported macro ------------------------------------------------------------*/



/* Exported constants --------------------------------------------------------*/



/* Exported types ------------------------------------------------------------*/
typedef  struct{
	void (* filter )(void);
	void (* adjust )(void);
	void (* adjust_two)(void);
	void (* adjust_float)(void);
	void (* adjust_out)(void);
	void (* touch_down)(void);
}MotorSpeedAdjust_Typedef;


/* Exported varables ----------------------------------------------------------*/
extern MotorSpeedAdjust_Typedef motorspeedAdjust;
/* Exported functions ---------------------------------------------------------*/


#endif /*  */
 
 
